package com.sun.sign.enums;


/**
 * @description: 相关枚举
 * @author: Jay
 * @date: 2018-3-28 14:35:30
 * @version: V1.0
 */
public enum SignErrorEnum implements BaseError{


    // token已经失效请重新登录
    TOKEN_OVER_DUE_ERROR(-10086,"token已经失效请重新登录"),
    BNS_CHK_ERROR(-3,"业务校验异常"),
    UNKNOWN_ERROR(-1,"未知异常");

    private int key ;

    private String name ;

    SignErrorEnum(int key, String name){
        this.key = key ;
        this.name = name ;
    }

    /**
     * 状态值
     */
    @Override
    public int getCode() {
        return this.key;
    }

    /**
     * 状态描述
     */
    @Override
    public String getMessage() {
        return this.name;
    }
}
